package org.example.order.case2;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 加@Order注解的实例化顺序演示
 * @author lizongyang
 * @date 2023/09/18
 */
@Slf4j
public class OrderMain {
    public static void main(String[] args) {
        log.info("========加@Order注解的实例化顺序========");
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
        // 设置扫描路径
        context.scan("org.example.order.case2");
        // 刷新
        context.refresh();
    }
}